package org.goldfish.message_board01.entity;

public class MessageDetail {
    private int messageId;
    private int lineNumber;
    private String content;

    // Constructors
    public MessageDetail() {}

    public MessageDetail(int messageId, int lineNumber, String content) {
        this.messageId = messageId;
        this.lineNumber = lineNumber;
        this.content = content;
    }

    // Getters and Setters
    public int getMessageId() {
        return messageId;
    }

    public void setMessageId(int messageId) {
        this.messageId = messageId;
    }

    public int getLineNumber() {
        return lineNumber;
    }

    public void setLineNumber(int lineNumber) {
        this.lineNumber = lineNumber;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "MessageDetail{" +
                "messageId=" + messageId +
                ", lineNumber=" + lineNumber +
                ", content='" + content + '\'' +
                '}';
    }
}
